export function showCustomAlert(options: CustomAlertOptions): void {
  const { message, duration = 2000 } = options;
  const alertBox = document.createElement('div');
  alertBox.style.cssText = `
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 10px;
  `;
  alertBox.textContent = message;
  document.body.appendChild(alertBox);
  setTimeout(() => {
    document.body.removeChild(alertBox);
  }, duration);
}

interface CustomAlertOptions {
  message: string;
  duration?: number;
}